package com.tuanzi.loan.business.repository.system;

import java.util.Date;
import java.util.List;

import com.tuanzi.loan.business.entity.system.Announcement;
import com.tuanzi.loan.business.repository.system.custom.AnnouncementRepositoryCustom;
import com.tuanzi.loan.core.repository.JPAAuditRepository;

/**
 * @author Ray 2017/09/21
 */
public interface AnnouncementRepository extends AnnouncementRepositoryCustom, JPAAuditRepository<Announcement, String> {

	List<Announcement> findAllByStartTimeBeforeAndEndTimeAfter(Date startTime, Date endTime);

	List<Announcement> findAllByStartTimeBeforeAndEndTimeAfterAndSendEmailAndHasSendEmail(Date startTime, Date endTime, Boolean sendEmail, Boolean hasSendEmail);
}
